package com.example.lte.service;

import com.example.lte.entity.OperationLogEntity;
import com.example.lte.po.ServerIpAddrInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.security.KeyManagementException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
import java.util.Date;
import java.util.concurrent.ExecutionException;

/**
 * @author lzh
 * @date 2020/10/23 - 11:14
 */
public interface ISystemLocalService {


    /**
     * 查询服务器IP和地址
     *
     * @return ServerIpAddrInfo
     */
    ServerIpAddrInfo findIpAddr() throws NoSuchAlgorithmException, NoSuchProviderException, KeyManagementException, ExecutionException, InterruptedException;


    /**
     * 页面查询日志
     *
     * @param account   账户
     * @param startDate 开始时间日期
     * @param endDate   结束时间日期
     * @return OperationLogEntity
     */
    Page<OperationLogEntity> getOperationLogPage(String account, Date startDate, Date endDate , Pageable pageable);

}
